package com.cr.business.service.impl;

import com.cr.business.domain.CrCommunication;
import com.cr.business.mapper.CrCommunicationMapper;
import com.cr.business.service.ICrCommunicationService;
import com.cr.common.core.text.Convert;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CrCommunicationServiceImpl implements ICrCommunicationService {
    @Autowired
    private CrCommunicationMapper crCommunicationMapper;

	@Override
	public List<CrCommunication> selectCrCommunicationList(CrCommunication crCommunication) {
		return this.crCommunicationMapper.selectCrCommunicationList(crCommunication);
	}

	@Override
	public int insertCrCommunication(CrCommunication communication) {
		return this.crCommunicationMapper.insertCrCommunication(communication);
	}

	@Override
	public List<CrCommunication> selectUserListList() {
		return this.crCommunicationMapper.selectUserListList();
	}

	@Override
	public Long selectMinUserId() {
		return this.crCommunicationMapper.selectMinUserId();
	}

	@Override
	public int deleteCrCommunicationByIds(String communicationId) {
		return this.crCommunicationMapper.deleteCrCommunicationByIds(Convert.toStrArray(communicationId));
	}
}